export default [
  {
    url: '/api/login',
    method: 'post',
    response: (option) => {
      let data = {};
      const body = JSON.parse(option.body);
      if (body.username === 'admin' && body.password === '123456') {
        data = {
          code: 200,
          message: '成功',
          data: {
            status: true,
            message: '登录成功',
            data: {
              username: body.username,
              avatar:
                'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
            },
          },
        };
      } else {
        data = {
          code: 200,
          message: '成功',
          data: {
            status: false,
            message: '登录失败',
          },
        };
      }
      return data;
    },
  },
];
